class Person1:
    def __init__(self,name):
        self.name = name
    def selfname(self):
        print(f"我的名字是{self.name}")

class Person2:
    def __init__(self,age):
        self.age = age
    def selfage(self):
        print(f"我的年龄是{self.age}")

class Student(Person1,Person2):
    def __init__(self,name,age,school):
        Person1.__init__(self, name)
        Person2.__init__(self, age)
        self.school = school
    def selfschool(self):
        print(f"我的学校是{self.school}")


stu = Student("安心",18,"希望中学")
print(stu.name,stu.age,stu.school)
stu.selfname()
stu.selfage()
stu.selfschool()






